$conTop: 20px;
$color-red: #EA3323;
$color-blue: #3E82F4;
$color-black2: #333333;

h1,
h2,
p {
  margin: 0;
}

// 多行隐藏
@mixin textoverflow($clamp: 1) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $clamp;
  /*! autoprefixer: ignore next */
  -webkit-box-orient: vertical;
}

.flex {
  display: flex;
}

.main {
  padding-top: 70px;
  width: 100%;
  position: relative;

  :deep(.orderDialog) {
    width: 440px;
    --el-dialog-padding-primary: 0px;
    border-radius: 20px;

    .el-dialog__header {
      padding: 15px 10px;
    }

    .orderBg {
      background: linear-gradient(141deg, #F7F9FA 0%, #FFF5F7 100%);
      border-radius: 20px;
      padding: 10px;
      display: flex;
      justify-content: space-around;

      .price {
        font-size: 18px;
        color: #FF0000;
        align-items: baseline;
      }

      .orderItems {


        .orderItem {
          margin-bottom: 10px;
          width: 400px;
          border-radius: 9px;
          position: relative;
          background-color: #ffffff;
          border: 1px solid #ffffff;
          padding: 15px;
          box-sizing: border-box;
          cursor: pointer;

          &.active {
            background: #FEF9F5;
            border: 1px solid #EB5E53;
          }

          .orderTag {
            position: absolute;
            left: -1px;
            top: -1px;
            width: 64px;
            height: 21px;
            background: linear-gradient(94deg, #EC5C54 0%, #EC7451 100%);
            border-radius: 10px 0px 0px 0px;
            font-size: 12px;
            line-height: 21px;
            text-align: center;
            color: #ffffff;
          }

          .price {
            margin-bottom: 15px;
          }

          .title {
            margin-top: 20px;
            line-height: 22px;
            font-size: 16px;
            color: $color-black2;
            height: 44px;
          }

          .button {
            border-radius: 4px;
            border: 1px solid #AF8A65;
            padding: 3px 0;
            text-align: center;
            color: #AF8A65;
            font-size: 14px;
          }
        }
      }

      .orderBottom {
        display: flex;
        flex-direction: column;
        align-items: center;

        p {
          margin: 0;
        }

        .payCode {
          .el-image {
            width: 100px;
            height: 100px;
          }

          .image-slot {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
            background: var(--el-fill-color-light);
            color: var(--el-text-color-secondary);
            font-size: 14px;
          }

          .dot {
            animation: dot 2s infinite steps(3, start);
            overflow: hidden;
          }
        }

        .payItem {
          p {
            color: $color-black2;
            font-size: 14px;
          }

          .needPrice {
            align-items: baseline;
            margin-bottom: 13px;
            justify-content: center;

          }

          .wechatPay {
            align-items: center;

            img {
              width: 20px;
              height: 20px;
              margin-right: 10px;
            }
          }
        }

        .inputItem {
          width: 242px;

          .inputText {
            color: #4A7AFF;
            cursor: pointer;
            margin-bottom: 20px
          }

          .inputBox {
            align-items: center;

            .payInput {
              width: auto;
              margin-right: 10px;

              .el-input__inner:focus {
                padding: 0
              }
            }

            .el-button {
              margin-right: 10px
            }

            .cancelCode {
              cursor: pointer;
              width: 40px;
            }
          }
        }

        .introItem {
          width: 280px;
          font-size: 14px;
          color: #666666;

          .intro-left {
            flex: none;
            margin-right: 30px;

            span {
              display: flex;
              align-items: center;
            }
          }
        }
      }
    }
  }

  .bgCon {
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #E5F3FF 0%, #F7F7F7 100%);
    position: fixed;
    z-index: -1;
    top: 0;

    .bgConChild {
      position: absolute;
      filter: blur(50px);
    }

    .bgConChild1 {
      position: absolute;
      left: -219px;
      top: 20px;
      border-radius: 50%;
      width: 438px;
      height: 487px;
      background: rgba(190, 181, 255, 0.2);
    }

    .bgConChild2 {
      right: -219px;
      top: 30px;
      border-radius: 50%;
      width: 438px;
      height: 487px;
      background: rgba(160, 255, 234, 0.2);
    }

    .bgConChild3 {
      left: 100px;
      top: 336px;
      border-radius: 50%;
      width: 422px;
      height: 328px;
      background: rgba(160, 255, 234, 0.1);
    }

    .bgConChild4 {
      left: 500px;
      bottom: 0px;
      border-radius: 50%;
      width: 422px;
      height: 290px;
      background: rgba(240, 255, 160, 0.1);
    }

    .bgConChild5 {
      right: 100px;
      top: 336px;
      border-radius: 50%;
      width: 422px;
      height: 324px;
      background: rgba(160, 200, 255, 0.1);
    }
  }

  .conWarp {
    width: 1200px;
    margin: 10px auto 30px auto;

    .conWarp-box {
      display: flex;
      margin-top: 24px;

      .conWarp-left {
        width: 867px;
      }

      .conWarp-right {
        width: 308px;
        margin-left: 25px;

        >section {
          margin-bottom: 20px;
        }
      }
    }

  }

  .bannerCon {
    position: relative;

    .bannerBg {
      position: relative;
      width: 100%;
    }

    .bannerTitle {
      position: absolute;
      left: 50%;
      top: 20%;
      width: 183px;
      transform: translateX(-50%);
    }


    .searchCon {
      position: absolute;
      top: 50%;
      width: 648px;
      left: 50%;
      transform: translateX(-50%);

      .searchBtn {
        cursor: pointer;
        position: absolute;
        right: 3px;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(95deg, #2C7AFF 0%, #89B5FF 100%);
        border-radius: 35px 35px 35px 35px;
        padding: 5px 10px;
        display: flex;
        align-items: center;

        .searchIcon1 {
          width: 17px;
          height: 17px;
          margin-right: 5px
        }

        .searchIcon2 {
          width: 33px;
        }
      }
    }

    :deep(.searchCon) {

      .el-select__wrapper,
      .el-input__wrapper {
        border-radius: 30px;
        padding: 0 60px 0 20px;
        height: 40px;
      }
    }
  }

  .filterCon {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 20px 15px;
    padding-bottom: 0;
    margin-top: $conTop;

    >section {
      display: flex;
    }

    .title {
      font-size: 22px;
      color: #333333;
      font-weight: 400;
      margin-right: 10px;
      padding-top: 2px;
      margin-bottom: 20px;
    }

    .filterItems {
      .filterItem {
        margin-right: 20px;
        margin-bottom: 20px;
        display: inline-block;
        border-radius: 20px;
        border: 1px solid #E5E5E5;
        padding: 6px 18px;
        font-size: 16px;
        color: #999999;
        cursor: pointer;

        &.active {
          background: #3580FF;
          border-color: #3580FF;
          color: #ffffff;
        }
      }
    }
  }

  .selectCon {
    margin-top: $conTop;

    .selectItem {
      display: inline-block;
      margin-right: 20px;

      .el-dropdown {
        .el-button {
          border-radius: 30px;
        }
      }
    }
  }

  .listCon {
    background-color: #ffffff;
    border-radius: 10px;
  }
}

@media screen and (max-width: 1280px) {
  .main {
    .conWarp {
      max-width: 1200px;
      width: 100%;

      .conWarp-box {
        .conWarp-left {
          width: 100%;
          max-width: 867px;
        }

        .conWarp-right {
          max-width: 308px;
          width: auto;
          margin-left: 25px;
        }
      }

    }
  }
}

@media screen and (max-width:768px) {
  .main {
    padding-top: 0;
    :deep(.orderDialog) {
      width: 80%;
      .orderBg {
        .orderItems {
          .orderItem {
            width: 100%;
          }
        }
      }
    }

    .conWarp {
      margin: 0;

      .conWarp-box {
        display: block;
        margin: 24px 10px;

        .conWarp-right {
          margin: 24px 0;
          max-width: 100%;
        }
      }
    }

    .bannerCon {

      .bannerBg,
      .bannerTitle {
        display: none;
      }

      .searchCon {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        padding: 20px 10px;

        .searchBtn {
          right: 14px;
        }
      }
    }

    .filterCon {
      margin: 0 10px;

      .title {
        font-size: 18px;
        flex: none;
      }

      .filterItems {
        overflow-x: auto;
        white-space: nowrap;

        .filterItem {
          margin-right: 10px;
          padding: 4px 16px;
          font-size: 14px;
        }
      }
    }

    .selectCon {
      margin-left: 10px;
      margin-right: 10px;
    }

    .rightLoginCon {
      display: none;
    }
  }

}